a = [5, 4, 3, 2, 1, 0]
for i in range(50, 201):
    for j in range(50, 201):
        if i * 2 == j * 4:
            num = i * 2
            if num % 10 in a and num // 10 % 10 in a and num // 100 in a:
                print(i, j)
                print(num)
